package com.tvunetworks.center.user.service;

import com.github.pagehelper.PageInfo;
import com.tvunetworks.center.common.model.PageUserDeviceParam;
import com.tvunetworks.center.common.util.Result;
import com.tvunetworks.center.gs.model.Device;

/**
 * @author Etan Yang
 * @data: 2021/6/4 19:05
 * @program: tvucc-aggregator
 * @description:
 */

public interface UserFeignService {
    /**
     * 根据用户id分页查询device
     * @param param param
     * @return PageInfo
     */
    PageInfo<Device> pageUserDevice(PageUserDeviceParam param);

    /**
     * 根据email查询用户在CC中的角色
     * @param email email
     * @return  Result
     */
    Result<Integer> getRoleByEmail(String email);
}
